/*
  广寒宫
  网址:www.guanghangong.xyz
 */
package com.moon.admin.framework.mybatisplus.props;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

import com.moon.admin.framework.MoonConstants;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import lombok.Getter;
import lombok.Setter;

/**
 * 租户配置
 * @author ninlong
 */
@Configuration
@Getter
@Setter
@ConfigurationProperties(prefix = "moon.tenant")
public class MoonTenantProperties {

	/**
	 * 租户类型
	 */
	private Integer type= MoonConstants.TenantTypeEnum.none.ordinal();

	/**
	 * 多租户字段名称
	 */
	private String column = "tenantCode";

	/**
	 * 多租户数据表
	 */
	private List<String> tables = new ArrayList<>();

	/**
	 * 多租户系统数据表
	 */
	private List<String> moonTables = Arrays.asList("act_de_model","tables","columns","sys_dict","sys_module","sys_menu","sys_id","sys_config","sys_region","gen_table","gen_table_column","sys_version","dev_datasource");
}
